import { services } from '@/config'

export const tableOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  addBtn: false,
  editBtn: false,
  viewBtn: true,
  updateBtn: false,
  searchMenuSpan: 6,
  labelWidth: 130,
  column: [
    {
      type: 'input',
      label: '主键',
      prop: 'id',
      span: 12,
      hide: true,
      display: false
    },
    {
      type: 'input',
      label: '责任部门ID',
      prop: 'userOuid',
      span: 12,
      hide: true,
      display: false
    },
    {
      type: 'input',
      label: '责任部门名称',

      prop: 'userOuname',
      span: 24
    },
    {
      type: 'input',
      label: '责任部门全名称',
      prop: 'userOufullname',
      span: 24,
      hide: true
    },
    {
      type: 'input',
      label: '责任人',
      prop: 'userUserid',
      span: 24,
      display: false,
      hide: true,
      editDisabled: true
    },
    {
      type: 'input',
      label: '责任人帐号',
      prop: 'userName',
      searchLabelWidth: 90,
      search: true,
      span: 24,
      editDisabled: true
    },
    {
      type: 'input',
      label: '责任人名称',
      prop: 'realName',
      search: true,
      searchLabelWidth: 95,
      span: 12,
      display: false,
      editDisabled: true
    },
    {
      type: 'tree',
      label: '所属消息',
      prop: 'managementid',
      span: 24,
      search: true,
      props: {
        label: 'name',
        value: 'id'
      },
      dicUrl: `${services.adminService}messagemanagement/tree`,
      dicMethod: 'get',
      editDisabled: true
    },
    {
      type: 'input',
      label: '邮箱',
      prop: 'email',
      span: 24,
      maxlength: 64,
      editDisabled: true
    },
    {
      type: 'input',
      label: '手机号',
      prop: 'phoneNumber',
      span: 24,
      maxlength: 11,
      editDisabled: true
    }
  ]
}
